#include <func.h>

int main()
{
    pid_t pid;
    pid=fork();
    if(0==pid)
    {
        printf("i am child,pid=%d\n",pid);
        while(1);
        return 0;
    }
    else
    {
        printf("i am parent,pid=%d\n",pid);
        sleep(1);
        return 0;
    }
}